/**
 * 
 * @fileOverview View control for the device list.
 * @author jmanero
 * 
 */

/** @ignore */
exports.callback = function(req, res) {
	model.Device.find(function(e, devices) {
		model.Message.error(e);
		res.render('devices.jade', {
			pageTitle : 'Devices',
			devices : devices,
			pretty : true
		});
	});
};

/** @ignore */
exports.path = '/devices';

/** @ignore */
exports.method = 'get';
